<?php
class Threads extends CActiveRecord {
	public static function model($className = __CLASS__) {
		return parent::model($className);
	}

	public function getViewUrl() {
		return BBS_BASE_URL.'/viewthread.php?tid='.$this->tid;
	}
	
	public function tableName() {
		return 'xinli_threads';
	}
}